package com.runrunfast.fxj.form;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author: 陈胤训
 * @create: 2019-03-16 10:49
 **/
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class PageForm {


    /**
     * 当前页
     */
    @Min(value = 0)
    @NotNull
    @ApiModelProperty(value = "当前页")
    private Integer current;

    /**
     * 查询数量
     */
    @Min(value = 1)
    @ApiModelProperty(value = "查询数量")
    private Integer size;

    /** 根据名称模糊查询,为空查询全部  */
    @ApiModelProperty(value = "根据名称模糊查询,为空查询全部")
    private String username;


}
